package com.logistics.delivery.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.logistics.delivery.entity.domain.Delivery;
import com.logistics.delivery.entity.domain.DeliveryAndPick;
import com.logistics.delivery.entity.model.DeliveryAndPickPager;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;
import java.util.Objects;

/**
 * <p>
 * 配送单 Mapper 接口
 * </p>
 *
 * @author zhiyu.fan
 * @since 2024-06-27
 */
@Mapper
public interface DeliveryMapper extends BaseMapper<Delivery> {

    Integer findDeliveryListTotal(DeliveryAndPickPager params);

    List<DeliveryAndPick> findDeliveryList(DeliveryAndPickPager params );

    /**
     * 查找站点使用数量
     * @param station
     * @return
     */
    Integer findUseStation(String station);
}
